import apibase from "@/api/apiBase";
import axios from "axios";
import { recharDoCheckInterface } from "./transferReview.interface";

//获取转账审核列表
export const $getRechargeList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/travel/recharge/getList',
    data: params,
    instance,
  });
}

//获取转账审核详情
export const $getRechargeInfo = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/travel/recharge/getInfo',
    data: params,
    instance,
  });
}

//转账审核
export const $recharDoCheck = (params: recharDoCheckInterface) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/travel/recharge/doCheck',
    data: params,
    instance,
  });
}